﻿using Inovout.Kuajing.Models;
using Inovout.Services;
using NHibernate.Criterion;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Inovout.Kuajing.Services
{
    public class BrandService : RepositoryService<Brand>
    {
        public IList<Brand> GetByCategory(ProductCategory productCategory)
        {
            return base.Repository.FindAll(Restrictions.Eq("ProductCategory.Id", productCategory.Id));
        }

    }
}
